home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18016 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: news.princeton.edu!blume
  2. From: blume@zayin.cs.princeton.edu (Matthias Blume)
  3. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  4. Subject: Re: Will Java kill C++?
  5. Date: 18 Apr 1996 14:38:56 GMT
  6. Organization: Princeton University
  7. Distribution: world
  8. Message-ID: <BLUME.96Apr18103856@zayin.cs.princeton.edu>
  9. References: <3134D499.653E@ix.netcom.com> <4ku8rq$pav@cubenx.cube.de>
  10.     <goochb.340.00156E50@rwi.com>
  11.     <BLUME.96Apr16103345@zayin.cs.princeton.edu>
  12.     <Dq0poC.3Iy@news.hawaii.edu>
  13. NNTP-Posting-Host: zayin.cs.princeton.edu
  14. In-reply-to: phinely@Hawaii.Edu's message of Wed, 17 Apr 1996 17:53:00 GMT
  15.  
  16. In article <Dq0poC.3Iy@news.hawaii.edu> phinely@Hawaii.Edu (Peter Hinely) writes:
  17.  
  18.    In article <BLUME.96Apr16103345@zayin.cs.princeton.edu>,
  19.    Matthias Blume <blume@zayin.cs.princeton.edu> wrote:
  20.    >In article <goochb.340.00156E50@rwi.com> goochb@rwi.com (William D. Gooch) writes:
  21.    >
  22.    >   I do think there's a serious lack of adequate instruction on 
  23.    >   the proper use of MI.  Perhaps this can be rectified.
  24.    >
  25.    >The only kind of `adequate' instruction on the `proper use' of MI is:
  26.    >
  27.    >    DON'T!
  28.    >
  29.    >BTW, there are people who think that *inheritance* is a bad idea
  30.    >already.  MI is only taking a bad idea to the extreme...
  31.    >
  32.  
  33.    There are people that think *computers* are a bad idea.  
  34.  
  35. True.  But those people usually know very little about computers.  On
  36. the other hand, the people I'm talking about know more about
  37. programming language design than a sizable fraction of the readers of
  38. this newsgroup taken together.
  39.  
  40.    Perhaps you could elaborate a little more why you/they think
  41.    inheritance/multiple inheritance is a bad idea. 
  42.  
  43. It turns out that inheritance with overiding hasn't been successfully
  44. modelled yet in any clean semantic framework.  There has been some
  45. progress, but usually people stop just short of adding inheritance,
  46. because it messes everything up.
  47.  
  48. Inheritance with overriding runs counter to any kind of desirable
  49. modularity -- it basically becomes impossible to establish useful
  50. invariants.
  51.  
  52. The true benefits from contemporary OO languages come from the fact
  53. that they provide means to express abstraction (albeit considerable
  54. caution is necessary) and some limited form of polymorphism.  (Better)
  55. Abstraction and polymorphism are available from other (non-OO)
  56. languages as well.  It is definitely worth having a look at something
  57. like Standard ML, which has a very powerful type- and module-system,
  58. while being soundly based on a cleanly defined semantic framework.
  59.  
  60. --
  61. -Matthias
  62.